package com.michael.xx.audiorecoder;

import java.io.File;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Mp3InputStream extends FileInputStream {

    public Mp3InputStream(String name) throws FileNotFoundException {
        super(name);
    }

    public Mp3InputStream(File file) throws FileNotFoundException {
        super(file);
    }

    public Mp3InputStream(FileDescriptor fdObj) {
        super(fdObj);
    }

    @Override
    public int read() {
        int read = 0;
        try {
            read = super.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return read;
    }

    @Override
    public int read(byte[] b) {
        int read = 0;
        try {
            read = super.read(b);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return read;
    }

    @Override
    public int read(byte[] b, int off, int len)  {
        int read = 0;
        try {
            read = super.read(b, off, len);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return read;
    }
}
